package com.zl.csMall.mine.order.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zl.csMall.mine.order.po.Orders;

public interface OrderService extends IService<Orders> {

    /**
     * @description: 创建订单
     * @author ChenNing
     * @date: 2025-10-22 11:28
     */
    boolean addOrder(Orders orders);

    /**
     * @description: 根据ID查询订单
     * @author ChenNing
     * @date: 2025-11-06 10:14
     */
    Orders getOrders(long id);

    /**
     * @description: 查询全部订单
     * @param content 订单商品搜索内容（仅商品编号或名称）
     * @author ChenNing
     * @date: 2025-10-22 11:49
     */
    Page<Orders> getOrderAll(LambdaQueryWrapper<Orders> queryWrapper, Page<Orders> page, String content);

}
